<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<textarea id="ccc"></textarea>
<button id="gg">aaa</button>
<script>
  var $c = $('#ccc');
  var baseUrl = "D:\\coding\\dx_app\\src\\pages\\poster\\template\\price\\1920\\";
  var qiniu = "../src/pages/poster/template/price/1920/"
  $('#gg').on('click', function () {
    var txt = $c.val();
    var d = txt.split(baseUrl);
    var r = [];
    $.each(d, function (i, ii) {
      if (ii.indexOf('.png') > -1 || ii.indexOf('.jpg') > -1 || ii.indexOf('.jpeg') > -1) {
        r.push(ii.replace(/\n/g, '').replace(/\\/g,'/'))
      }
    })
    console.log(JSON.stringify(r))
  });
  console.log()
</script>
</body>
</html>
